package model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Users implements Serializable {
    private static final long serialVersionUID = 1L;

    Map<String,User> users = new HashMap();

    public void addUser(User user) {
        users.put(user.getUserName(),user);
    }

    public User getUser(String key) {
        User user = users.get(key);
        return user;
    }
}
